<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
	<title>查询列表</title>
	<link rel="stylesheet" href="__PUBLIC__/Policy/css/weui.min.css">
	<link rel="stylesheet" href="__PUBLIC__/Policy/css/bootstrap.min.css">
	<script src="__PUBLIC__/Policy/js/jquery-1.8.2.min.js"></script>
	
</head>
<body>
<div style="text-align: center;margin-top:4%; margin-bottom:4%">
	<img src="__PUBLIC__/Policy/img/logo.png" alt="logo" width="40%">
</div>
<div class="form-group">
    <div class="input-group">
      <input class="form-control" type="search" placeholder="请输入内容搜索">
         <div class="input-group-addon">开始搜索</div>
    </div>
  </div>






	<div class="weui-panel">
	    <div class="weui-panel__bd">
	        <div class="weui-media-box weui-media-box_small-appmsg">
	            <div class="weui-cells">
	            	<?php foreach ($list as $k => $v) { ?>
			<a class="weui-cell weui-cell_access" href="http://<?php echo $v['link'];?>">
			<div class="weui-cell__bd weui-cell_primary">
			<p>{$v['content']}</p>
			</div>
			<span class="weui-cell__ft"></span>
			</a>
	            	<?php }?>
	                
	            </div>
	        </div>
	    </div>
	</div>


	<ul class="modal-footer no-margin-top ">
	          {$page}
               </ul>

          <div class="weui-footer" id="footer">
                    <p class="weui-footer__links">
                        <a href="javascript:void(0);" class="weui-footer__link">中国航天-神舟软件</a>
                    </p>
                    <p class="weui-footer__text">Copyright &copy; 2008-2016 </p>
            </div> 


<div class="js_dialog" id="iosDialog2" style="display: none;">
                <div class="weui-mask"></div>
                <div class="weui-dialog">
                    <div class="weui-dialog__bd">没有相关数据请联系管理人员</div>
                    <div class="weui-dialog__ft">
                        <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary" id="qr">确定</a>
                    </div>
                </div>
            </div>


</body>
<script>
	$('#iosDialog2').hide();
	$(function(){
		
		$('.input-group-addon').click(function(){
			var value = $('input[type=search]').val();
			if(!value){
				$('.weui-dialog__bd').text('没有相关信息');
				$('#iosDialog2').show();
				return false;
			}
			location.href = '__CONTROLLER__/search/keywords/' + value;
			
		})

		$('#qr').click(function(){
			$('#iosDialog2').hide();
		})
		
			<?php if(!$list){?>
				$('#iosDialog2').show();
				$('.weui-dialog__bd').text('没有相关信息');
				$('#qr').click(function(){
					$('#iosDialog2').hide();
					location.href = '__CONTROLLER__/index';
				})
				return false;
			<?php }?>

	})
</script>
<style>
	a:link,a:visited{
	 text-decoration:none;  /*超链接无下划线*/
	}
	a:hover{
	 text-decoration:none;  /*鼠标放上去有下划线*/
	}
	p{
		margin:0 0;
	}
	body {
              font-family:Microsoft YaHei;
           }

	 #footer{
                margin-top:30px;
          }
          
</style>
</html>
